<?php
$_POST['id_pro']=$_GET['project'];
$query=_update('quality_plan',$_POST,"id_qa='$_GET[id]'");
if($query){
    $_SESSION['success']='Quality plan has updated successfully';
}else{
    $_SESSION['failed']='Failed to update Quality plan';
}        
redirect('index.php?page=quality_plan/qp-list');
?>
